import React from 'react';
import { Table, TableProps } from 'antd';
interface CustomTableProps extends TableProps<any> {
  data: any[]; // 表格数据源
}
const CustomTable: React.FC<CustomTableProps> = ({ data, ...restProps }) => {
  const columns = [
    {
      title: '',
      dataIndex: '',
      key: '',
    }
  ];
  return (
    <Table
      dataSource={data}
      columns={columns}
      pagination={false}
      size='middle'
      
      {...restProps}
    />
  );
}
export default CustomTable;